var express = require('express');
var router = express.Router();
const {loadImg,addhouse,updatehouseRent,gethouseRent,delhouseData,gethouseById}=require('../controllers/house.js');

//添加合同
router.post('/', addhouse);
router.get('/', gethouseRent);
router.get('/:_id',gethouseById);
router.delete('/',delhouseData);
router.post('/uploadImages',loadImg);
router.put('/',updatehouseRent);
module.exports = router;